package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_user")  //对应表名称
public class User {
    @TableId(value = "ID",type = IdType.AUTO )  //对应的主键  AUTO自增
    private int id;
    @TableField  //基础字段属性
    private String userName;
    private String password;
    private String name;
    private int age;
    private String email;
}
